<#include "/common/pagerForm.html"> 
<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.advancedquery.js?v=${ver}" type="text/javascript"></script>


<form name="equipmentCondition" rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
    <input type="hidden" id="advancedStatus" name="advancedStatus"
                value="${condition.advancedStatus!''}" />
    <div class="pageHeader">
        <div class="searchBar poStatus">
        <ul class="searchContent">
            <li>
                    <label><@label key="equipmentCode.C,colon">设备编号：</@label></label>
                      <input class="look" id="equipmentLookup.equipmentCode" name="equipmentCode" type="text" postField="equipmentCode" suggestFields="equipmentCode,equipmentText" 
                    suggestUrl="${rc.getContextPath()}/manage/equipment/equipmentSuggest" lookupGroup="equipmentLookup" value="${condition.equipmentCode!''}"
                    warn="<@label key='equipmentCode.C,doesNotExist.C'>设备编号不存在</@label>"  remote="${rc.getContextPath()}/manage/equipment/validateEquipmentCodeForSelect"/>
                    <a class="btnLook" href="${rc.getContextPath()}/manage/equipment/equipmentLookUp" rel="equipmentLookup_dialog" target="dialog" width="700" height="450" lookupGroup="equipmentLookup" ></a>
            </li>
            <li>
                    <label><@label key='equipmentText.C,colon'>设备描述：</@label></label>
                    <input id="equipmentLookup.equipmentText"  size="22" type="text" maxlength="60" name="equipmentText" value="${condition.equipmentText!''}" />
            
            </li>

        </ul>
        <ul class="searchContent">
            <li>
                <label><@label key="equipmentStatusCode.C,colon">设备状态编号：</@label>
                </label>
                <input class="look" id="statusLookup.statusCode" name="statusCode" value="${condition.statusCode!''}" type="text" postField="statusCode" suggestFields="statusCode,statusText" 
                suggestUrl="${rc.getContextPath()}/manage/equipmentStatus/statusDropdown" lookupGroup="statusLookup" value="${condition.statusCode!''}"/>
                <a class="btnLook" href="${rc.getContextPath()}/manage/equipmentStatus/statusLookup" width="700" height="300"  rel="statusLookup_dialog"  lookupGroup="statusLookup" ></a>
            </li>
            <li>
                <label id="statusText"><@label key="equipmentStatus.C,colon">设备状态描述：</@label></label>
                 <input id="statusLookup.statusText" type="text" class="textInput" name="statusText" value="${condition.statusText!''}" /></li>
            </li>

            <li class="query">
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit">
                            <@label key='query.B'>查询</@label>
                        </button>
                    </div>
                </div>
            </li>
            <li class="advancedQuery" >            
                <a id="advancedQuery"href="javascript:void(0);"   onclick="openAdvanced(navTab.getCurrentPanel())">
                    <@label key="advancedQuery.C">高级查询</@label>
                </a>
                <span  onclick="openAdvanced(navTab.getCurrentPanel());"></span>            
            </li>
        </ul>
    </div>
    </div>
<div id="collapsablePanel" style="display:none;"class="pageHeader" >
    <div class="searchBar">
            <ul class="searchContent">
            <li>
                <label>
                    <@label key='createDateTime.C,colon'>创建日期从：</@label>
                </label>
            
                    <input type="text" class="date" readonly="readonly" size="17" max_Date="{maxCreateDateTime}"  name="minCreateDateTime" value="${condition.minCreateDateTime!''}"/>
                    <a class="inputDateButton" href="javascript:;">选择</a>
            </li>
            <li>
                <label>
                    <@label key="to.C,colon">至：</@label>
                </label>
                
                    <input type="text" class="date" readonly="readonly" size="17" min_Date="{minCreateDateTime}" name="maxCreateDateTime"  value="${condition.maxCreateDateTime!''}"/>
                    <a class="inputDateButton" href="javascript:;">选择</a>
            </li>
            <li>
                <label>
                    <@label key='memo.C,colon'>备注：</@label>
                </label>
                <input type="text" name="memo" value="${condition.memo!''}"/>
            </li>
        </ul>
        <ul class="searchContent">
            <li>
                <label>
                    <@label key='modifyDateTime.C,colon'>修改日期从：</@label>
                </label>
                
                    <input type="text" class="date" readonly="readonly" size="17"  max_Date="{maxModifyDateTime}" name="minModifyDateTime" value="${condition.minModifyDateTime!''}"/>
                    <a class="inputDateButton" href="javascript:;">选择</a>
            </li>
            <li>    
                <label>
                    <@label key="to.C,colon">至：</@label>
                </label>
                
                    <input type="text" class="date" readonly="readonly" size="17" min_Date="{minModifyDateTime}" name="maxModifyDateTime"  value="${condition.maxModifyDateTime!''}"/>
                    <a class="inputDateButton" href="javascript:;">选择</a>
            </li>

        </ul>
        <ul class="searchContent">
            <li>
                <label>
                    <@label key='createUser.C,colon'>创建人：</@label>
                </label>
                <input type="text" name="createUser" value="${condition.createUser!''}"/>
            </li>
            <li>
                <label>
                    <@label key='modifyUser.C,colon'>修改人：</@label>
                </label>
                <input type="text" name="modifyUser" value="${condition.modifyUser!''}"/>
            </li>
            </ul>
    </div>
</div>
</form>

<div class="pageContent">

    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="runningRecort_add" labelKey="add.B" defalutName="新增">
            <li><a class="add" target="dialog" mask="true" width="650" height="300" rel="runningRecord_tab"  href="${rc.getContextPath()}/manage/runningRecord/addRunningRecord?navTabId=${navTabId!''}"title="<@label key='addRunningRecord.D'>新增运行记录</@label>"><span><@label key="add.B">新增</@label></span></a></li></@buttonRight>
            <@buttonRight menuCode="runningRecort_edit" labelKey="edit.B" defalutName="编辑">
            <li><a class="edit" target="dialog" mask="true" width="650" height="370" rel="runningRecord_tab" 
            href="${rc.getContextPath()}/manage/runningRecord/modifyRunningRecord?id={runningRecord_id}&navTabId=${navTabId!''}"title="<@label key='editRunningRecord.D'>编辑运行记录</@label>"><span><@label key="edit.B">编辑</@label></span></a></li></@buttonRight>
            <@buttonRight menuCode="runningRecort_view" labelKey="view.B" defalutName="详情">
            <li><a class="icon" target="dialog" mask="true" width="650" height="370" rel="equipment_tab"
            href="${rc.getContextPath()}/manage/runningRecord/viewRunningRecord?id={runningRecord_id}&navTabId=${navTabId!''}"title="<@label key='viewRunningRecord.D'>运行记录详情</@label>"><span><@label key="view.B">详情</@label></span></a></li></@buttonRight>
             <@buttonRight menuCode="runningRecort_del" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" href="${rc.getContextPath()}/manage/runningRecord/deleteRunningRecord?navTabId=${navTabId!''}" postType="string" rel="ids" callback="batchjobAjaxDone"
                title="<@label key='confirmDelRunningRecord.M'>确认要删除选择的设备状态吗？</@label>"><span><@label key="delete.B">删除</@label></span>
            </a>
            </li>
            </@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="160">
        <thead>
            <tr>
                <th width="25"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th width="40"><@label key="serialNumber.C">序号</@label></th>
                <th width="80" orderField="equipmentCode"<#if (page.orderField?? && page.orderField == 'equipmentCode')>class="${page.orderDirection!''}"</#if>><@label key='equipmentCode.C'>设备编号</@label></th>
                <th width="80" orderField="equipmentText"<#if (page.orderField?? && page.orderField == 'equipmentText')>class="${page.orderDirection!''}"</#if>><@label key='equipmentText.C'>设备名称</@label></th>
                <th width="80" orderField="statusCode"<#if (page.orderField?? && page.orderField == 'statusCode')>class="${page.orderDirection!''}"</#if>><@label key="equipmentStatusCode.C">设备状态编号</@label></th>
                <th width="80" orderField="statusText"<#if (page.orderField?? && page.orderField == 'statusText')>class="${page.orderDirection!''}"</#if>><@label key='statusCode.C'>设备状态</@label></th>
                <th width="120" orderField="startTime"<#if (page.orderField?? && page.orderField == '"startTime"')>class="${page.orderDirection!''}"</#if>><@label key='startTime.C'>开始时间</@label></th>
                <th width="120" orderField="endTime"<#if (page.orderField?? && page.orderField == 'endTime')>class="${page.orderDirection!''}"</#if>><@label key='endTime.C'>结束时间</@label></th>
                <th width="80" orderField="memo"<#if (page.orderField?? && page.orderField == 'memo')>class="${page.orderDirection!''}"</#if>><@label key='memo.C'>备注</@label></th>
                <th width="100" orderField="createUser"<#if (page.orderField?? && page.orderField == 'createUser')>class="${page.orderDirection!''}"</#if>><@label key="createUser.C">创建人</@label></th>
                <th width="100" orderField="createDateTime"<#if (page.orderField?? && page.orderField == 'createDateTime')>class="${page.orderDirection!''}"</#if>><@label key="createDateTime.C">创建时间</@label></th>
            </tr>
        </thead>
        <tbody>
        <#if page??><#if (page.data?size>0)> <#list page.data as runningRecord>
            <tr target="runningRecord_id" rel="${runningRecord.id!''}">
                <td><input name="ids" value="${runningRecord.id!''}" type="checkbox"></td>
                <td>${page.startRow + runningRecord_index}</td>
                <td>${runningRecord.equipmentCode!''}</td>
                <td>${runningRecord.equipmentText!''}</td>
                <td>${runningRecord.statusCode!''}</td>
                <td>${runningRecord.statusText!''}</td>
                <td>${(runningRecord.startTime?string("yyyy-MM-dd HH:mm"))?if_exists}</td> 
                <td>${(runningRecord.endTime?string("yyyy-MM-dd HH:mm"))?if_exists}</td>
                <td>${runningRecord.memo!''}</td>
                <td>${runningRecord.createUser!''}</td>
                <td>${(runningRecord.createDateTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
            </tr>
        </#list>
        <#else>
        <tr target="production_id">
                <td colspan="20" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        <#else>
        <tr target="production_id">
                <td colspan="20" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>







<script type="text/javascript">
$(function() {
    initAdvancedQuery(navTab.getCurrentPanel());
});


</script>

